/**
 * Copyright (c) 2013-Now http://aidex.vip All rights reserved.
 */
import config from './config'

export default {

	// 基础服务：登录登出、身份信息、菜单授权、切换系统、字典数据等
	lang: (params = {}) => uni.$u.http.get('/lang/' + params.lang),
	index: (params = {}) => uni.$u.http.get(config.adminPath + '/mobile/index', params),
	// getUserInfo: (params = {}) => uni.$u.http.get(config.adminPath+'/mobile/user/getUserInfo', params),


	login: (data = {}) => uni.$u.http.post(config.adminPath + '/auth/facility/login', data),
	logout: (params = {}) => uni.$u.http.delete(config.adminPath + '/auth/facility/logout', params),
	code: (params = {}) => uni.$u.http.get(config.adminPath + '/code', params),


	getUser: (params = {}) => uni.$u.http.get(config.adminPath + `/system/facility/customer/${params}`),
	getUserInfo: (params = {}) => uni.$u.http.get(config.adminPath + `/system/facility/getUserInfo`, {
		params: params
	}),
	getList: (params = {}) => uni.$u.http.get(config.adminPath + `/system/facility/gun/list`, {
		params: params
	}),
	getOrderList: (params = {}) => uni.$u.http.get(config.adminPath + `/core/facility/oilOrder/list`, {
		params: params
	}),
	
	getOrder: (params = {}) => uni.$u.http.get(config.adminPath + `/core/facility/platform-pay-order/oilOrder/list`, {
		params: params
	}),
	losePhysicalCard: (data = {}) => uni.$u.http.post(config.adminPath + `/system/facility/lose-physical-card`, 
		data
	),

	calculation: (data = {}) => uni.$u.http.post(config.adminPath +
		`/core/facility/preferentialCalculation/calculation`, data),
	addOrder: (data) => uni.$u.http.post(config.adminPath + `/core/facility/platform-pay-order/add`, data),
	payOrder: (data = {}) => uni.$u.http.post(config.adminPath + `/core/facility/platform-pay-order/pay`, data),
	getHxCodeByPhone: (params = {}) => uni.$u.http.get(config.adminPath +
		`/system/facility/getHxCodeByPhone/${params}`),
	commodityExchangeCancel: (data = {}) => uni.$u.http.post(config.adminPath +
		`/system/facility/commodityExchangeCancel`, data),
	all: (params = {}) => uni.$u.http.get(config.adminPath + `/system/facility/work/settle/all`, params),
	complete: (params = {}) => uni.$u.http.post(config.adminPath +
		`/system/facility/work/settle/complete?workSettleNo=` + params),
		
	workRecord: (params = {}) => uni.$u.http.get(config.adminPath + `/system/facility/work/settle/list`, {params: params}),
	getCard: (params = {}) => uni.$u.http.get(config.adminPath + `/system/facility/selectList`,{params: params}),
	getCardORCode: (params = {}) => uni.$u.http.get(config.adminPath +
		`/core/facility/platform-pay-order/oilOrder/getCardORCode`, {params:params}),
	cancel: (params = {}) => uni.$u.http.get(config.adminPath + `/core/facility/platform-pay-order/cancel`, {
		params: params
	}),
	queryPayStatusBatch: (data = {}) => uni.$u.http.post(config.adminPath + `/core/facility/recharge/queryPayStatusBatch`, data),
	getRechargeById: (id)=> uni.$u.http.get(config.adminPath + `/core/facility/posOrderPrint/getRechargeById/${id}`,),
	
	qrcode: (data = {}) => uni.$u.http.post(config.adminPath + `/core/facility/generate/qrcode/pos`,
		data),
	
	saveOilOrder: (data = {}) => uni.$u.http.post(config.adminPath + `/core/facility/platform-pay-order/saveOilOrder`,
		data),
	getCardByCardId: (params = {}) => uni.$u.http.get(config.adminPath + `/system/facility/oilCarTeamCard/getCardByCardId`, {
		params: params
	}),
	bindPhysicalCard: (phone,physicalCardNo)=> uni.$u.http.post(config.adminPath + `system/facility/bind-physical-card/${phone}/${physicalCardNo}`,),
	querySecurityCode: (params = {}) => uni.$u.http.get(config.adminPath + `/system/facility/querySecurityCode`, {
		params: params
	}),
	queryPayStatus: (params = {}) => uni.$u.http.get(config.adminPath + `/core/facility/recharge/queryPayStatus`,{params: params}),
	getPayOrderById: (id) => uni.$u.http.get(config.adminPath + `/core/facility/posOrderPrint/getPayOrderById/${id}`),
	getPayOrderById: (id) => uni.$u.http.get(config.adminPath + `/core/facility/posOrderPrint/getPayOrderById/${id}`),
	getRefundOrderById: (id) => uni.$u.http.get(config.adminPath + `/core/facility/posOrderPrint/getRefundOrderById/${id}`),
	queryOrderList:(data={})=>uni.$u.http.post(config.adminPath+`/core/facility/platform-pay-order/payOrderQueryBatch`,data),
	getCardByPhone: (params = {}) => uni.$u.http.get(config.adminPath + `/system/facility/oilCarTeamCard/getCardByPhone`,{params: params}),
	refundOrder: (data = {}) => uni.$u.http.post(config.adminPath + `/core/facility/platform-pay-order/refund`,
		data),
	payOrderQuery: (data = {}) => uni.$u.http.post(config.adminPath +
		`/core/facility/platform-pay-order/payOrderQuery`, data),
	getOrderMessage: (id) => uni.$u.http.get(config.adminPath +
		`/core/facility/platform-pay-order/oilOrder/getORCode/${id}`),
		
	getComsterAmountRecharge: (data = {}) => uni.$u.http.post(config.adminPath + `/system/facility/custom-refund/recharge`,data),	

	getListArr: (params = {}) => uni.$u.http.get(config.adminPath + `/core/facility/recharge/list`, {params:params}),
	calculationByCheck: (data = {}) => uni.$u.http.post(config.adminPath +
		`/core/facility/preferentialCalculation/calculationByCheck`, data),
	recharge_1: (data = {}) => uni.$u.http.post(config.adminPath + `/core/facility/recharge/recharge_1`, data),
	rechargeCalculation: (data = {}) => uni.$u.http.post(config.adminPath +
		`/core/facility/recharge/rechargeCalculation`, data),
	back: (data = {}) => uni.$u.http.post(config.adminPath + `/core/facility/recharge/back`, data),
	childrenCardList: (params = {}) => uni.$u.http.get(config.adminPath + `/system/facility/oilCarTeamCard/childrenCardList`, {params:params}),
	bakCad: (data = {}) => uni.$u.http.post(config.adminPath + `/system/facility/oilCarTeamCard/lose`, data),
	getOilGunInfo: (params={}) => uni.$u.http.get(config.adminPath + `/core/facility/platform-pay-order/getOilGunInfo`,{params:params}),


	// logout: (params = {}) => uni.$u.http.get(config.adminPath+'/mobile/login/logout', params),


	getStationByCompany: (params = {}) => uni.$u.http.get(config.adminPath + `/system/facility/getStationByCompany`, {params:params}),
	getOilOffList: (params = {}) => uni.$u.http.get(config.adminPath + `/system/facility/offline-gun-list`, params),
	// getStationByCompany: (companyNo) => uni.$u.http.get(config.adminPath + `/system/oilStationInfo/getStationByCompany/companyNo?=${companyNo}`),
	oilCarTeamCard: (data = {}) => uni.$u.http.post(config.adminPath + `/system/facility/oilCarTeamCard`, data),
	oilCarTeamCard: (data = {}) => uni.$u.http.post(config.adminPath + `/system/facility/oilCarTeamCard`, data),
	getCardByCardNo: (params = {}) => uni.$u.http.get(config.adminPath + `/system/facility/oilCarTeamCard/getCardByCardNo`, {params:params}),
	cardPayList: (params = {}) => uni.$u.http.get(config.adminPath + `/system/facility/oilCarTeamCard/cardPayList`, {params:params}),
	carTeamConsumptionRecordList: (params = {}) => uni.$u.http.get(config.adminPath + `/system/facility/oilCarTeamCard/carTeamConsumptionRecordList`, {params:params}),
	oilCarTeamCardList: (params = {}) => uni.$u.http.get(config.adminPath + `/system/facility/oilCarTeamCard/list`, {params:params}),

	authInfo: (params = {}) => uni.$u.http.get(config.adminPath + '/authInfo', params),
	menuTree: (params = {}) => uni.$u.http.get(config.adminPath + '/menuTree', params),
	switchSys: (params = {}) => uni.$u.http.get(config.adminPath + '/switch/' + params.sysCode),
	dictData: (params = {}) => uni.$u.http.get(config.adminPath + '/system/dict/data/type/' + params.dictType),
	posBankSelfPayCallback: (data = {}) => uni.$u.http.post(config.adminPath + '/core/facility/posPayNotify/posBankSelfPayCallback',data),
	payTypeDesc: (params = {}) => uni.$u.http.get(config.adminPath + '/core/facility/payTypeDesc/list',{params:params}),
	listByOilOrderId: (id) => uni.$u.http.get(config.adminPath + `/core/facility/platform-pay-order/listByOilOrderId/${id}`),
	
	
	
	

};




